# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
from aliyunsdkr_kvstore.endpoint import endpoint_data

class MasterNodeShutDownFailOverRequest(RpcRequest):

	def __init__(self):
		RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'MasterNodeShutDownFailOver','redisa')
		self.set_protocol_type('https')
		self.set_method('POST')

		if hasattr(self, "endpoint_map"):
			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
		if hasattr(self, "endpoint_regional"):
			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

	def get_FailMode(self): # String
		return self.get_query_params().get('FailMode')

	def set_FailMode(self, FailMode):  # String
		self.add_query_param('FailMode', FailMode)
	def get_ProxyFaultMode(self): # String
		return self.get_query_params().get('ProxyFaultMode')

	def set_ProxyFaultMode(self, ProxyFaultMode):  # String
		self.add_query_param('ProxyFaultMode', ProxyFaultMode)
	def get_ProxyInstanceIds(self): # String
		return self.get_query_params().get('ProxyInstanceIds')

	def set_ProxyInstanceIds(self, ProxyInstanceIds):  # String
		self.add_query_param('ProxyInstanceIds', ProxyInstanceIds)
	def get_DBNodes(self): # String
		return self.get_query_params().get('DBNodes')

	def set_DBNodes(self, DBNodes):  # String
		self.add_query_param('DBNodes', DBNodes)
	def get_DBFaultMode(self): # String
		return self.get_query_params().get('DBFaultMode')

	def set_DBFaultMode(self, DBFaultMode):  # String
		self.add_query_param('DBFaultMode', DBFaultMode)
	def get_InstanceId(self): # String
		return self.get_query_params().get('InstanceId')

	def set_InstanceId(self, InstanceId):  # String
		self.add_query_param('InstanceId', InstanceId)
	def get_Category(self): # String
		return self.get_query_params().get('Category')

	def set_Category(self, Category):  # String
		self.add_query_param('Category', Category)
